#ifndef _audio_h
#define _audio_h


/** \brief Playing music and sound effects. */
namespace audio
{
  /** \brief Initialize the audio engine.
    *
    * \return 0 on success, otherwise non-zero
    */
  int init();

  /** \brief Quit the audio engine.
    *
    * Should be called at the end of the application.
    */
  void quit();

  //const char *getErrorString();


  /** \brief Load mod music for playing.
    *
    * Supported formats: mod, s3m, xm, it and more.
    *
    * \param fname Full filename (without path prefix)
    */
  void openMusic(const char *fname);

  /** \brief Start playing opened music. */
  void playMusic();

  void stopMusic();
}

#endif // #ifndef _audio_h
